package com.example.securitysample.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/a")
    public String ma(){
        return "用户访问a资源";
    }

    @GetMapping("/b")
    public String mb(){
        return "用户访问b资源";
    }
}